<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  },
  created() {
    window.addEventListener('unload',()=>{
      if (this.$store.state.username !== ''){
        window.localStorage.setItem("state",JSON.stringify(this.$store.state));
      }
    });
  },
}
</script>

<style>
  *{
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-family:"微软雅黑 Light";
  }
#app {

}
</style>
